//
//  MLAPropertyRepairDetailVC.m
//  MagicLampApp
//
//  Created by Zheng on 2018/12/24.
//  Copyright © 2018 zheng.magic.lamp.app. All rights reserved.
//

#import "MLAPropertyRepairEvaluteVC.h"

@interface MLAPropertyRepairEvaluteVC ()

@end

@implementation MLAPropertyRepairEvaluteVC {
    UILabel *subTitleLbl;
    UITextView *textView;
    UIButton *commitBtn;
}

- (void)viewDidLoad {
    [super viewDidLoad];

    [self configTitle:@"工作人员是否以出色的完成工作"];
    
    subTitleLbl = [[UILabel alloc] init];
    subTitleLbl.textColor = CX_GetColorHex(0x999999, 1);
    subTitleLbl.font = CX_GetNormalFont(10);
    subTitleLbl.text = @"我们非常在意您的评价，感谢您认真对待";
    [self.view addSubview:subTitleLbl];
    [subTitleLbl mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.titleView.mas_bottom).offset(10);
        make.left.mas_equalTo(15);
    }];
    
    textView = [[UITextView alloc] init];
    textView.backgroundColor = CX_GetColorLine();
    textView.layer.cornerRadius = 5;
    textView.layer.masksToBounds = YES;
    [self.view addSubview:textView];
    [textView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.right.mas_equalTo(-15);
        make.height.mas_equalTo(100);
        make.top.equalTo(self->subTitleLbl.mas_bottom).offset(20);
    }];
    
    commitBtn = [self getCommitButtonWithTitle:@"提交评价"];
    [commitBtn addTarget:self action:@selector(commitBtnAction) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:commitBtn];
    [commitBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.right.mas_equalTo(-15);
        make.height.mas_equalTo(40);
        make.top.equalTo(self->textView.mas_bottom).offset(35);
    }];
}

- (void)commitBtnAction {
    CX_Log(@"提交评价");
}


@end
